#include"RBTree.h"
void test()
{

	RBTree<int, int> brt;
	set<int> se;

	//vector<int> v = { 2, 1, 3, 9, 6, 0, 5, 8, 4, 16, 7, 11, 26, 18, 14, 15 };
	for (int i = 0; i < 10; i++)
	{
		int b = rand() % 1000 + (4 * i)%1000;
		//auto ret = se.insert(b);

		brt.Insert(b, b);
		//brt.IsBalance();
	}

	//for (auto& e : v)
	//{
	//	if (e == 7)
	//	{
	//		int a = 1;
	//	}
	//	brt.Insert(e, e);
	//
	//}


	//cout << "Is balance:" << brt.IsBalance() << endl;

	RBTree<int, int> a = brt;
	a.InOrder();
	RBTree<int, int> b(a);
	b.InOrder();

}

int main()
{

	test();
	return 0;
}